package com.minjiang.dao;

import com.minjiang.pojo.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface AccountMapper {
    @Update("update account set money=#{money} where id=#{id} ")
    int updateMoney(@Param("id") int id, @Param("money") float money);
    @Select("select * from account where name=#{name}")
    Account queryUserById(@Param("name") String name);
}
